﻿<%@ Page Title="栏目管理" Language="C#" MasterPageFile="Function.Master" AutoEventWireup="true" CodeBehind="CatalogueList.aspx.cs" Inherits="LEARNREN.COM.WebSite.Admin.CatalogueList" %>

<%@ Register Src="../UserDefinedControls/SelectCatalogueDropDownList.ascx" TagName="SelectCatalogueDropDownList" TagPrefix="uc1" %>
<%@ Register Src="../UserDefinedControls/CatalogueTree.ascx" TagName="CatalogueTree" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <form runat="server" defaultbutton="btnSaveAsNew" class="ui-widget" style="color: #222;">
    <asp:ScriptManager runat="server" ID="scm">
    </asp:ScriptManager>
    <asp:UpdatePanel runat="server" ID="udp2" OnLoad="udp2_Load">
        <ContentTemplate>
            <div style="float: left; width: 300px; overflow: auto;">
                <fieldset class="register" style="width: auto;"><legend>栏目列表</legend>
                    <uc2:CatalogueTree ID="CatalogueTree1" runat="server" OnSelectedNodeChanged="CatalogueTree1_SelectedNodeChanged" />
                </fieldset>
            </div>
            <div>
                <fieldset class="register"><legend>栏目信息</legend>
                    <asp:HiddenField ID="txtId" runat="server" />
                    <div class="editblock">
                        <asp:Label ID="TitleLabel" runat="server" AssociatedControlID="txtTitle">栏目名称:</asp:Label>
                        <asp:TextBox ID="txtTitle" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="TitleRequired" runat="server" ControlToValidate="txtTitle" CssClass="failureNotification" ErrorMessage="必须填写“栏目名称”。" ToolTip="栏目名称" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="editblock">
                        <label>父栏目<span style="color: Red">（不选择则为顶级栏目）</span>:</label>
                        <uc1:SelectCatalogueDropDownList ID="SelectCatalogueDropDownList1" runat="server" />
                    </div>
                    <div class="clear">
                    </div>
                    <div class="editblock" style="margin-right: 15em;">
                        <asp:Label ID="LabelType" runat="server" AssociatedControlID="ddlType">栏目类别:</asp:Label>
                        <asp:DropDownList ID="ddlType" runat="server" CssClass="textEntry ui-widget-content ui-corner-all" Style="padding: .3em;">
                            <asp:ListItem Value="SinglePage">单页面</asp:ListItem>
                            <asp:ListItem Value="ArticleList">新闻列表</asp:ListItem>
                            <asp:ListItem Value="ProductList">产品列表</asp:ListItem>
                            <asp:ListItem Value="ProjectList">案例列表</asp:ListItem>
                            <asp:ListItem Value="JobList">招聘列表</asp:ListItem>
                            <asp:ListItem Value="FeedBackList">留言列表</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                    <div class="clear" style="height: 12px;">
                    </div>
                    <div class="editblock" style="line-height: 25px;">
                        <asp:Label ID="lbIsRedirect" runat="server" AssociatedControlID="cbIsRedirect" Style="float: left; vertical-align: middle;">跳转到其他页面:</asp:Label>
                        <asp:CheckBox ID="cbIsRedirect" runat="server" Style="float: left; vertical-align: middle; margin-top: 3px;" TextAlign="Left" />
                    </div>
                    <div class="editblock" style="line-height: 25px;">
                        <asp:Label ID="lblReDirectUrl" runat="server" AssociatedControlID="txtReDirectUrl" Style="float: left; vertical-align: middle;">跳转地址:</asp:Label>
                        <asp:TextBox ID="txtReDirectUrl" runat="server" Style="float: left; vertical-align: middle;"></asp:TextBox>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="editblock">
                        <asp:Label ID="lblHtmlPath" runat="server" AssociatedControlID="txtHtmlPath">静态页面文件夹<span style="color:Red">（只填文件夹名，兄弟目录不能重名）</span>:</asp:Label>
                        <asp:TextBox ID="txtHtmlPath" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="HtmlPathRequired" runat="server" ControlToValidate="txtHtmlPath" CssClass="failureNotification" ErrorMessage="必须填写“静态界面文件夹”。" ToolTip="必须填写“静态界面文件夹”。" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="editblock">
                        <asp:Label ID="LabelOrder" runat="server" AssociatedControlID="KeyWords">排序:</asp:Label>
                        <asp:TextBox ID="Order" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="OrderRequired" runat="server" ControlToValidate="Order" CssClass="failureNotification" ErrorMessage="必须填写“排序”。" ToolTip="必须填写“排序”。" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                        <asp:RangeValidator ID="OrderRangeValidator" runat="server" ControlToValidate="Order" CssClass="failureNotification" Display="Dynamic" ErrorMessage="*" ForeColor="Red" MaximumValue="10000" MinimumValue="0" Type="Integer"></asp:RangeValidator>
                    </div>
                    <div class="editblock">
                        <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="KeyWords">关键词:</asp:Label>
                        <asp:TextBox ID="KeyWords" runat="server"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="KeyWords" CssClass="failureNotification" ErrorMessage="必须填写“关键词”。" ToolTip="必须填写“关键词”。" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="editblock">
                        <asp:Label ID="SummaryLabel" runat="server" AssociatedControlID="Summary">栏目描述:</asp:Label>
                        <asp:TextBox ID="Summary" runat="server" Rows="10" TextMode="MultiLine"></asp:TextBox>
                        <asp:RequiredFieldValidator ID="SummaryRequired" runat="server" ControlToValidate="Summary" CssClass="failureNotification" ErrorMessage="必须填写“栏目描述”。" ToolTip="必须填写“栏目描述”。" ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                    </div>
                    <div class="clear">
                    </div>
                    <div class="submitButton">
                        <asp:Button ID="btnDel" runat="server" OnClick="btnDel_Click" Text="删除本栏目" Enabled="false" />
                        <asp:Button ID="btnSaveCatalogue" runat="server" CommandName="MoveNext" OnClick="btnSaveCatalogue_Click" Text="修改栏目" ValidationGroup="RegisterUserValidationGroup" Enabled="false" />
                        <asp:Button ID="btnSaveAsNew" runat="server" CommandName="MoveNext" Text="保存为新栏目" ValidationGroup="RegisterUserValidationGroup" OnClick="btnSaveAsNew_Click" />
                    </div>
                </fieldset>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</asp:Content>
